<?php
	include '../config.php';
	include 'function.php';
	if(is_ajax()){
		$dbpath = '../up-script/install-database.sql';
		if(read_sql_to_db($dbpath)){
			echo json_encode(array('code'=>1,'msg'=>'suc'));
			exit;
		}
		echo json_encode(array('code'=>-1,'msg'=>'fail'));
		exit;
	}
	